/*
CREATE TABLE "base_de_rcj_relation" (
  "sequence_nbr" text(64) NOT NULL,
  "quota_id" text(19),
  "res_qty" real(16,6),
  "library_code" text(255),
  "material_code" text(50),
  "material_name" text(100),
  "de_code" text(255),
  "de_name" text(255),
  "kind" integer(255),
  "rcj_id" text(64),
  "rec_user_code" text(32),
  "rec_status" text(4),
  "rec_date" text(20),
  "extend1" text(64),
  "extend2" text(64),
  "extend3" text(64),
  "description" text(255),
  "agency_code" text(64),
  "product_code" text(64),
  PRIMARY KEY ("sequence_nbr")
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseDeRcjRelation {
    pub sequence_nbr: String,
    pub quota_id: Option<String>,
    pub res_qty: Option<String>,
    pub library_code: Option<String>,
    pub material_code: Option<String>,
    pub material_name: Option<String>,
    pub de_code: Option<String>,
    pub de_name: Option<String>,
    pub kind: Option<String>,
    pub rcj_id: Option<String>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<String>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
    pub agency_code: Option<String>,
    pub product_code: Option<String>,
}
crud!(BaseDeRcjRelation {}, "base_de_rcj_relation");
